<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<html:html>
<head>
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=Expires content=0>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="../../style/css/style.css" type="text/css">
<script language="javascript" type="text/javascript" src="../../style/scripts/util.js"></script>
<script language="javascript1.2">
function ShowFormTitle(strTitle)
{
	document.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"height:26px; background-position: left bottom; background-image: url(../../style/images/FormTitle_A_4.gif); background-repeat: repeat-x;\">");
	document.write("  <tr >");
	document.write("	<td style=\"width:5px; background-position: left bottom; background-image: url(../../style/images/FormTitle_A_1.gif); background-repeat: no-repeat;\">&nbsp;&nbsp;&nbsp;</td>");
	document.write("	<td class=\"FormTitle\" style=\"width:100%; padding-left:5px; padding-top:3px; background-position: left bottom; background-image: url(../../style/images/FormTitle_A_2.gif); background-repeat: no-repeat;\">");
	document.write("		<span id=\"spanFormTitle\" class=\"SpanTitle\">"+ strTitle +"</span>");
	document.write("	</td>");
	document.write("	<td style=\"width:5px; background-position: right bottom; background-image: url(../../style/images/FormTitle_A_3.gif); background-repeat: no-repeat;\">&nbsp;&nbsp;&nbsp;</td>");
    document.write("  </tr>");
	document.write("</table>");
}
function operation1(){
	if(window.document.forms[0].NEWPASSWORD.value !='' || window.document.forms[0].NEWPASSWORD1.value !='' || window.document.forms[0].OLDPASSWORD.value !=''){
		if(validateActionForm(document.forms[0])){
			if(window.document.forms[0].NEWPASSWORD.value != window.document.forms[0].NEWPASSWORD1.value ){
				alert("两次密码输入不一致！");
				return;
			}
			window.document.forms[0].operationType.value = "submit";
			window.document.forms[0].submit();
		}
	}else{
			window.document.forms[0].operationType.value = "submit";
			window.document.forms[0].submit();		
	}
}
  function getMessage(){
      var errorMsg=document.forms[0].errorFlag.value;
		if(""!=errorMsg){
    		alert(document.forms[0].errorFlag.value);     
    		document.forms[0].errorFlag.value="" 
		}
  }	
</script>
</head>

<body marginheight="0" marginwidth="0" bottommargin="0" topmargin="0" onLoad="getMessage();">
<html:form method="post" action="/pages/F09/F0904.do" enctype="multipart/form-data">
<html:hidden property="operationType"/>
<html:hidden property="errorFlag"/>
<!--Begin：表单标题-->
<div class="DivBlock">
	<script language="javascript" type="text/javascript">
		ShowFormTitle("用户个人信息管理");
	</script>
</div>
<!--End：表单标题-->
<!--Begin：表单折叠区块1-->
<div class="DivBlock">
<div class="DivWrap">
  <table  WIDTH="81%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
	<tr>
		<td width="12%" align="center">用户名称</td>
		<td width="38%"><html:text property="USERNAME" styleClass="MyTextReadOnly" readonly="true"/></td>
		<td width="12%" align="center" >所属机构</td>
	  	<td width="38%"><html:text property="ORGNAME" styleClass="MyTextReadOnly" readonly="true"/></td>
	</tr>
	<tr>
		<td align="center" >管理机构</td>
		<td colspan="3"><html:text property="MANAGORGNAME" styleClass="MyTextReadOnly" readonly="true"/></td>
	</tr>
	<tr>
		<td align="center">旧&nbsp;密&nbsp;码</td>
		<td colspan="3"><html:password property="OLDPASSWORD" maxlength="50" styleClass="MyText"/></td>
	</tr>
	<tr>
		<td align="center">新&nbsp;密&nbsp;码</td>
		<td><html:password property="NEWPASSWORD"  maxlength="50" styleClass="MyText"/></td>
		<td align="center">确认密码</td>
		<td><html:password property="NEWPASSWORD1" maxlength="50" styleClass="MyText"/></td>
	
	<tr>
		<td align="center">固定电话</td>
		<td><html:text property="TEL" styleClass="MyText" maxlength="50" /></td>
		<td align="center">移动电话</td>
		<td><html:text property="MOBIL" styleClass="MyText" maxlength="50"/></td>
	</tr>
	
	<tr>
		<td align="center">备&nbsp;&nbsp;&nbsp;&nbsp;注</td>
		<td colspan="3"><html:textarea property="NOTES" cols="73" rows="5" styleClass="MyArea"/></td>
	</tr>
  </table>
</div>
</div>
<!--End：表单折叠区块1-->
<div class="DivBlock">
<div class="DivButton">
  <input type="button" name="Submit1" class="MyButton" value="保存" onClick="javascript:operation1();">
</div>
</div>
<html:messages id="aa" message="true"><bean:message key="errors.prefix"/><bean:write name="aa"/><bean:message key="errors.suffix"/></html:messages>
</html:form>
</body>
<script language="Javascript1.2" type="text/javascript">
	function validateActionForm(form) { 
		return validateMinLength(form)&&validateMaxLength(form)&&validateRequired(form);
	} 

    function minlength() { 
    	
    }  

	function maxlength(){
		this.aa = new Array("OLDPASSWORD", "用户密码 长度大于30位！", new Function ("varName", "this.maxlength='30';  return this[varName];"));
		this.bb = new Array("NEWPASSWORD", "新密码 长度大于30位！", new Function ("varName", "this.maxlength='30';  return this[varName];"));
		this.cc = new Array("NEWPASSWORD1", "确认密码 长度大于30位！", new Function ("varName", "this.maxlength='30';  return this[varName];"));

	}
	
	function required(){
		this.aa = new Array("OLDPASSWORD", "用户密码 不能为空！", new Function ("varName", "this.nullable='false';  return this[varName];"));
		this.bb = new Array("NEWPASSWORD", "新密码 不能为空！", new Function ("varName", "this.nullable='false';  return this[varName];"));
		this.cc = new Array("NEWPASSWORD1", "确认密码 不能为空！", new Function ("varName", "this.nullable='false';  return this[varName];"));
	
	}
</script>
</html:html>